Xbasic methods for the HTML and HTMLHOST Xdialog Commands

Description

This article describes the new Xbasic methods that can be used on the HTML that is rendered by either the {html} or new {htmlhost} commands.

In order to use these methods, you have to use a slightly different syntax.

This is how we documented that you use the {html} command

dim htmlTextVariable as c
 htmlTextVariable = <<%html%
 <b>Hello World</b>
 %html%
 ui_dlg_box("HTML",<<%dlg%
 {html=100,20htmlTextVariable};
 %dlg%)

However, if you want to use methods, you must use this syntax (differences highlighted in red):

dim htmlTextVariable as c
 htmlTextVariable = <<%html%
 <b>Hello World</b>
 %html%
dim pHTML as p
 dim pHTML.object as p
 dim pHTML.text as c = htmlTextVariable
ui_dlg_box("HTML",<<%dlg%
 {html=100,20pHhtml};
 %dlg%)

See Also